package com.acce.system.dao;

import java.util.List;

import com.acce.system.pojo.DeliverAddress;


public interface IDeliverAddressDao {
	
	/**
	 * 根据ID获取地址
	 * @param deliverAddress
	 * @return
	 */
	DeliverAddress getDeliverAddressById(DeliverAddress deliverAddress);
	/**
	 * 根据属性获取地址
	 * @param deliverAddress
	 * @return
	 */
	List<DeliverAddress> getDeliverAddressByCondition(DeliverAddress deliverAddress);
	/**
	 * 添加地址
	 * @param 
	 * @return
	 */
	int insertDeliverAddress(DeliverAddress deliverAddress);
	/**
	 * 批量添加地址
	 * @param deliverAddressz
	 * @return
	 */
	boolean insertBatchDeliverAddress(List<DeliverAddress> deliverAddressz);
	/**
	 * 修改地址
	 * @param 
	 * @return
	 */
	int updateDeliverAddress(DeliverAddress deliverAddress);
	/**
	 * 批量修改地址
	 * @param deliverAddressz
	 * @return
	 */
	boolean updateBatchDeliverAddress(List<DeliverAddress> deliverAddressz);
	/**
	 * 重置公司所有地址为不默认
	 * @param 
	 * @return
	 */
	int clearDeliverAddressDefault(DeliverAddress deliverAddress);

}
